package com.snowfeel.sfmall.core.enums;

import com.snowfeel.sfmall.core.enums.base.BaseEnum;

/**
 * @author guomenghuai
 * @date 2024/9/6
 * @Description
 */
public enum DataScopeEnum implements BaseEnum<Integer> {

    /**
     * value 越小，数据权限范围越大
     */
    ALL(0, "所有数据"),
    DEPT_AND_SUB(1, "部门及子部门数据"),
    DEPT(2, "本部门数据"),
    SELF(3, "本人数据");

    private Integer value;

    private String label;

    @Override
    public Integer getValue() {
        return value;
    }

    @Override
    public String getLabel() {
        return label;
    }

    DataScopeEnum(Integer value, String label) {
        this.value = value;
        this.label = label;
    }
}
